package com.example.hjt_java_web_homework2.application.service;

import com.example.hjt_java_web_homework2.application.dto.AirConditionerDTO;
import com.example.hjt_java_web_homework2.application.dto.ElectricMeterDTO;
import com.example.hjt_java_web_homework2.application.dto.EnvironmentDataDTO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Li Chun Hei
 * @date 31/10/2025
 * @description
 */

public interface DeviceService {
    // 空调管理
    AirConditionerDTO createAirConditioner(AirConditionerDTO dto);
    AirConditionerDTO updateAirConditioner(Long id, AirConditionerDTO dto);
    AirConditionerDTO getAirConditionerById(Long id);
    List<AirConditionerDTO> getAllAirConditioners();
    void deleteAirConditioner(Long id);

    // 电表管理
//    ElectricMeterDTO createElectricMeter(ElectricMeterDTO dto);
//    ElectricMeterDTO updateElectricMeter(Long id, ElectricMeterDTO dto);
//    ElectricMeterDTO getElectricMeterById(Long id);
//    List<ElectricMeterDTO> getAllElectricMeters();
//    void deleteElectricMeter(Long id);

    // 环境数据
    EnvironmentDataDTO recordEnvironmentData(EnvironmentDataDTO dto);
    List<EnvironmentDataDTO> getEnvironmentDataByLocation(String location);
    List<EnvironmentDataDTO> getAllEnvironmentData();
}
